import request from '@/utils/request'

export default {
  List(searchObj) {
    return request({
      url: `/user/sys-vaccinator/list/${searchObj}`,
      method: 'get'

    })
  },
  removeById(id) {
    return request({
      url: `/user/sys-vaccinator/remove/${id}`,
      method: 'delete'
    })
  },
  save(sysVaccinator) {
    return request({
      url: '/user/sys-vaccinator/save',
      method: 'post',
      data: sysVaccinator
    })
  },
  getById(id) {
    return request({
      url: `/user/sys-vaccinator/get/${id}`,
      method: 'get'
    })
  },
  updateById(sysVaccinator) {
    return request({
      url: '/user/sys-vaccinator/update',
      method: 'put',
      data: sysVaccinator
    })
  }
}
